package com.hl.mapper;

import com.hl.domain.Heartknowledge;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
* @author 24227
* @description 针对表【heartknowledge(心理知识表，用于存储心理学相关知识信息)】的数据库操作Mapper
* @createDate 2024-09-04 14:20:32
* @Entity com.hl.domain.Heartknowledge
*/
public interface HeartknowledgeMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Heartknowledge record);

    int insertSelective(Heartknowledge record);

    Heartknowledge selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Heartknowledge record);

    int updateByPrimaryKey(Heartknowledge record);

    // 查询所有心理健康文章
    List<Heartknowledge> getAllHeartknowledge();

 //展示所有知识信息
    List<Heartknowledge> HEARTKNOWLEDGE_LIST();

    //根据标题名字查找
    List<Heartknowledge> selectByName(@Param("name") String name, @Param("startTime") Date startTime, @Param("endTime")Date endTime);

    //根据id查找text
    String selectText(Long id);



}
